package com.tfswue.lhj.controller;

import org.springframework.http.ResponseEntity;
import com.tfswue.lhj.config.ResourceNotFoundException;
import org.springframework.web.bind.annotation.*;

import java.awt.*;

@RestController
public class ConsultController {

    @GetMapping(value = "/student/findById", produces = MediaType.APPLICATION_JSON_VALUE)
    public String findById(@RequestParam Integer id) {
        String student=null;
        // 模拟查询学生信息
        if(student==null){
            throw new ResourceNotFoundException("学生信息未找到，ID: " + id);
        }
        return student;

    }
}
